<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="http://minedata.cn/minemapapi/v1.2/minemap.css">
    <script src="http://minedata.cn/minemapapi/v1.2/minemap.js"></script>
    <style>
        html,
        body,
        #map {
            width: 100%;
            height: 100%;
        }

        html,
        body {
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    <div id="map"></div>
</body>
<script>
    /**
     * 基本地图加载
     * 地图缩放级别限制
     */
    minemap.accessToken = 'e919a6f32ce242f5aec22652d9dc1fdb';
    minemap.solution = 2139;
    var map = new minemap.Map({
        container: 'map',
        style: "http://minedata.cn/service/solu/style/id/2139",
        center: [116.46, 39.92],
        zoom: 16,
        pitch: 60,
        minZoom: 17,    //地图最大缩放级别限制
        minZoom: 9,     //地图最小缩放级别限制
    });
    // map.addControl(new minemap.Navigation(),"bottom-right");
    map.addControl(new minemap.Scale(), "bottom-right");

</script>

</html>